package com.example.mybatisplus.holder;

/**
 * @ClassName ClientAttributeHolder
 * @Author benguo.bai
 * @Date 2019/9/25 10:01
 * @Versuin 1.0
 **/
public class ClientAttributeHolder {


    private static ThreadLocal<String> holder = new ThreadLocal<>();

    private ClientAttributeHolder() {}


    public static void set(String attribute) {
        holder.set(attribute);
    }

    public static void remove() {
        holder.remove();
    }

    public static String get() {
        return holder.get();
    }
}
